# CMakeList.txt
# 2022-11-09  10:40  by  CYL  @ST
PROJECT (HELLO_C++)
# run CMakeLists.txt which under '/src/' and output at '/build/bin/'
ADD_SUBDIRECTORY (src bin)

# default CMAKE_INSTALL_PREFIX value is '/usr/local/'
# Or you can use 'cmake -DCMAKE_INSTALL_PREFIX=/the path you wanna install/' when you type the CLI statement in Linux Console.
SET(CMAKE_INSTALL_PREFIX INS_CYL)
# copy FILES to '/build/INS_CYL/HW_CYL/'
INSTALL (FILES COPYRIGHT_CYL readme.md DESTINATION HW_CYL)
# copy PROGRAMS like bash or python file to '/build/INS_CYL/scripts/'
INSTALL (PROGRAMS runHello.sh DESTINATION scripts)
# copy all files under DocCYL to 'build/INS_CYL/HW_CYL/'.
# if you write INSTALL (DIRECTORY DocCYL DESTINATION HW_CYL),it means cmake will move all files under DocCYL to 'build/INS_CYL/HW_CYL/DocCYL/'.
INSTALL (DIRECTORY DocCYL/ DESTINATION HW_CYL)
